use md5::{Digest, Md5};

pub fn md5_hash(password: &str) -> String {
    let mut hasher = Md5::new();
    hasher.update(password);
    let result = hasher.finalize();
    format!("{:x}", result)
}

pub fn display_option(opt: &Option<String>) -> &str {
    opt.as_deref().unwrap_or("Default Value")
}
